package main;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JTextArea;

public class InstructionsPanel extends JFrame {

	private static final long serialVersionUID = -5440231008805347615L;
	
	JTextArea instructions;
	
	public InstructionsPanel() {
		instructions = new JTextArea();
		instructions.setEditable(false);
		this.setResizable(false);
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		this.add(instructions, BorderLayout.CENTER);
		String stuff = "";
		stuff += ("Welcome to Adventures of Adventure Land\r\n");
		stuff += ("In order to enjoy your stay here, you will need to know how to play\r\n\r\n");
		stuff += ("Move all 4 of the boxes now open so that you will be able to see all of them\r\n");
		stuff += ("To move or attack, press the corresponding buttons on the Navigation box. \r\n\r\n ");
		stuff += ("The Stick Person Empire has been invaded by the Red Squares of Doom\r\n");
		stuff += ("You have to be on top of the red squares of doom to be able to attack them\r\n");
		stuff += ("The red squares of doom turn to orange squares of doom when you step on them\r\n");
		stuff += ("When you vanquish an orange square of doom, it turns into a yellow square of doom\r\n");
		stuff += ("After you walk off of the yellow square of doom, it gets vaporized\r\n");
		stuff += ("The floor is made out of friendly green squares of happiness\r\n");
		stuff += ("It is up to YOU to save the Stick Person Empire from utter destruction at the hands \r\nof the Red Squares of doom\r\n\r\n");
		stuff += ("Attack Styles: \r\n");
		stuff += ("Melee: An attack style based on mostly strength.  Warriors should use this\r\n");
		stuff += ("Ranged: An attack style based on mostly dexterity.  Archers and Thiefs should use this.\r\n");
		stuff += ("Magic: An attack style based on only intellect.  Only wizards should use this\r\n\r\n");
		stuff += ("");
		stuff += ("Both Melee and Ranged are able to be used interchangably, depending on the enemy \r\nmonster's stats.\r\n\r\n\r\n");
		instructions.setText(stuff);
		instructions.setVisible(true);
		this.setSize(500, 500);
		this.setVisible(true);
	}
}
